/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.interfaces;

import east2west.dto.TourDetailDTO;
import java.util.ArrayList;

/**
 *
 * @author nguyendat
 */
public interface TourDetailInterface {

    ArrayList<TourDetailDTO> readByAll();

    ArrayList<TourDetailDTO> findByPrice(float price);

    ArrayList<TourDetailDTO> findByTourDetailDto(TourDetailDTO dto);

    TourDetailDTO findById(int id);

    boolean create(TourDetailDTO dto);

    boolean update(TourDetailDTO dto);

    boolean delete(TourDetailDTO dto);

    boolean delete(int id);

    TourDetailDTO getTopOnlyImage(int id);

    float getSumPriceTourDetail(int id);
}
